﻿namespace CSharpPro._1023;

public class Demo
{ 
    public void ort(double[] a)
    {
        double  temp;
        for (int i = 0; i < a.Length-1; i++)
        {
            for(int j=0;j<a.Length -i-1;j++)
            {
                if(a[j]<a[j+1])
                {
                    temp = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = temp;
                }
                    
            }
        }
    }

    public void Test1()
    {
        
        int[,] arr4=new int[2,3];
        arr4[0, 0] = 1;
        arr4[1, 0] = 2;
        arr4[1, 1] = 3;
        arr4[1, 2] = 4;

        int[] arr5 = { 1, 55, 6, 25, 46 };
        Array.Sort(arr5);
        Array.Reverse(arr5);
        Console.WriteLine();
        foreach (var i in arr5)
        {
            Console.WriteLine(i+"\t");;
        }

       
            

    }
}